﻿using LJLib.Net.SPI.Com;
using System.Collections.Generic;

namespace PhoneUI.Com
{
    public sealed class SaveWrkgrpQCRequest : ILJTokenRequest<SaveWrkgrpQCResponse>
    {
        public string token { get; set; }
        /// <summary>
        /// 指令单分部ID
        /// </summary>
        public int scid { get; set; }
        /// <summary>
        /// 指令单ID
        /// </summary>
        public int orderid { get; set; }
        /// <summary>
        /// 扫描的成品条码
        /// </summary>
        public string barcode { get; set; }
        /// <summary>
        /// 工组ID
        /// </summary>
        public int wrkgrpid { get; set; }
        /// <summary>
        /// 是否合格
        /// </summary>
        public int ifok { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public double qty { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string dscrp { get; set; }
        /// <summary>
        /// 质检结果
        /// </summary>
        public string qcResult { get; set; }
        /// <summary>
        /// 质检图片名称
        /// </summary>
        public List<string> FileNames { get; set; }
        /// <summary>
        /// 质检图片数据
        /// </summary>
        public List<byte[]> FileDatas { get; set; }
        /// <summary>
        /// 保存后是否打印
        /// </summary>
        public bool ifprint { get; set; }

        public string GetApiName()
        {
            return "SaveWrkgrpQC";
        }
    }

    public sealed class SaveWrkgrpQCResponse : LJResponse
    {
        /// <summary>
        /// 工组质检单ID
        /// </summary>
        public int pkid { get; set; }
        /// <summary>
        /// 工组质检单单号
        /// </summary>
        public string billcode { get; set; }
    }
}